package com.sservice.service.service.impl;

import com.sservice.model.dao.IClienteleDao;
import com.sservice.model.entity.Clientele;
import com.sservice.model.vo.ClienteleVo;
import com.sservice.service.service.IClienteleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by suweiming on 2017/12/20.
 */

@Service
public class ClienteleServiceImpl implements IClienteleService {
    @Autowired
    private IClienteleDao dataDao;

    @Override
    public List<Clientele> queryByPage(ClienteleVo arg) {
        return dataDao.queryByPage(arg);
    }

    @Override
    public int queryCount(ClienteleVo arg) {
        return dataDao.queryCount(arg);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dataDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Clientele arg) {
        return dataDao.insert(arg);
    }

    @Override
    public int insertSelective(Clientele arg) {
        return dataDao.insertSelective(arg);
    }

    @Override
    public Clientele selectByPrimaryKey(Integer id) {
        return dataDao.selectByPrimaryKey(id);
    }

    @Override
    public Object replaceUnitCode(Clientele arg) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(Clientele arg) {
        return dataDao.updateByPrimaryKeySelective(arg);
    }

    @Override
    public List<Clientele> queryMyClientele(ClienteleVo arg) {
        return dataDao.queryMyClientele(arg);
    }

    @Override
    public Clientele selectByComNameAndUnitCode(Clientele clientele) {
        return dataDao.selectByComNameAndUnitCode(clientele);
    }

    @Override
    public int querySupplierCount(ClienteleVo arg) {
        return dataDao.querySupplierCount(arg);
    }

    @Override
    public List<Clientele> querySupplierByPage(ClienteleVo arg) {
        return dataDao.querySupplierByPage(arg);
    }
}
